package com.ldy.gkrpc.server;

import com.ldy.gkrpc.codec.Decoder;
import com.ldy.gkrpc.codec.Encoder;
import com.ldy.gkrpc.codec.JSONDecoder;
import com.ldy.gkrpc.codec.JSONEncoder;
import com.ldy.gkrpc.transport.TransportServer;
import com.ldy.gkrpc.transport.impl.HttpTransportServer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description server配置
 * @Author songxulin
 * @Date 2020/4/13 19:35
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcServerConfig {
    private Class<? extends TransportServer> transportClass = HttpTransportServer.class;

    private Class<? extends Encoder> encoderClass = JSONEncoder.class;

    private Class<? extends Decoder> decoderClass = JSONDecoder.class;

    private int port =3000;
}
